package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * Le账户-生态建设等级
 * </p>
 *
 * @author 作者
 * @since 2022-12-10
 */
@Getter
@Setter
@TableName("app_eco_level")
@ApiModel(value = "AppEcoLevel对象", description = "Le账户-生态建设等级")
public class AppEcoLevel extends Model<AppEcoLevel> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("等级编号")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("条件-生态建设值要求")
    @TableField("eco_value")
    private Integer ecoValue;

    @ApiModelProperty("奖励-最大加速周期")
    @TableField("accelerate_round")
    private Integer accelerateRound;

    @ApiModelProperty("等级名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
